package com.aidong.login.entity;

import java.util.Date;

import org.apache.logging.log4j.util.Strings;

public class MemberBase {
	private String nickName;
	private String headUrl;
	private String gender;
	private Date birthday;
	private Date createDate;
	private Integer orderCount;

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getHeadUrl() {
		return headUrl;
	}

	public void setHeadUrl(String headUrl) {
		this.headUrl = headUrl;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public boolean isComplete() {
		return Strings.isNotBlank(nickName) || Strings.isNotBlank(headUrl) || Strings.isNotBlank(gender)
				|| birthday != null;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Integer getOrderCount() {
		return orderCount;
	}

	public void setOrderCount(Integer orderCount) {
		this.orderCount = orderCount;
	}
}
